# -*- coding: UTF-8 -*-
from flask import Flask
from flask.ext.sqlalchemy import SQLAlchemy
from module_tool import *

app = Flask(__name__)
app.debug = True

ip = module_tool_get_conf('software_db', 'ip')
username = module_tool_get_conf('software_db', 'username')
password = module_tool_get_conf('software_db', 'password')
database = module_tool_get_conf('software_db', 'database')
mysql_conf = 'mysql://'+username+':'+password+'@'+ip+'/'+database
app.config['SQLALCHEMY_DATABASE_URI'] = mysql_conf
db = SQLAlchemy(app)

import view_test
import view_software
import view_server

import interface_software
import interface_server
import interface_tool